#ifndef MODBUSWIG_H
#define MODBUSWIG_H

#include <QWidget>
#include <QDebug>
#include <QString>
#include <QStringList>
#include <QByteArray>

#include <QJsonArray>
#include <QJsonValue>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonParseError>
#include "mqtt/qmqtt.h"
#include "GlobalVal.h"
#include "setwig.h"

namespace Ui {
class ModbusWig;
}

class ModbusWig : public QWidget
{
    Q_OBJECT

public:
    explicit ModbusWig(QWidget *parent = 0);
    ~ModbusWig();
    int fan,led,buzzer;

private:
    Ui::ModbusWig *ui;

protected:
    void paintEvent(QPaintEvent* event);

private slots:
    void dataUpSlot(QByteArray Array);
    void btnClickedTemSlot();
    void btnLedSlot();
    void btnFanSlot();
    void btnBuzzerSlot();
};

#endif // MODBUSWIG_H
